
package marker.xml.metadata;

import java.util.ArrayList;
import java.util.List;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
 
@Root(name="bean")
public class InfoBean extends AbstractBean{
	@Attribute
	private String name;
	@Attribute
	private String module;
	@Attribute(required=false)
	private String desc;
	@ElementList(inline=true,name="property",required=false)
	private List<Property> properties;
 
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getModule() {
		return module;
	}
	public void setModule(String module) {
		this.module = module;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public List<Property> getProperties() {
		if(properties==null){
			properties=new ArrayList<Property>();
		}
		return properties;
	}
	public void setProperties(List<Property> properties) {
		this.properties = properties;
	}
 
	public String getClassName(){
		return getPackage()+"."+name+"Bean";
	}
	public String getSimpleClassName(){
		return name+"Bean";
	}
	@Override
	public String getPackage() {
		return super.getPackage()+".bean";
	}
	

}
